home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / browser / nsIBrowserInstance.h
C/C++ Source or Header  |  2006-05-08  |  5KB  |  147 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIBrowserInstance.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIBrowserInstance_h__
  6. #define __gen_nsIBrowserInstance_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMWindowInternal; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIBrowserInstance */
  21. #define NS_IBROWSERINSTANCE_IID_STR "8af0fa40-598d-11d3-806a-00600811a9c3"
  22.  
  23. #define NS_IBROWSERINSTANCE_IID \
  24.   {0x8af0fa40, 0x598d, 0x11d3, \
  25.     { 0x80, 0x6a, 0x00, 0x60, 0x08, 0x11, 0xa9, 0xc3 }}
  26.  
  27. class NS_NO_VTABLE nsIBrowserInstance : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IBROWSERINSTANCE_IID)
  31.  
  32.   /* boolean startPageCycler (); */
  33.   NS_IMETHOD StartPageCycler(PRBool *_retval) = 0;
  34.  
  35.   /* attribute boolean cmdLineURLUsed; */
  36.   NS_IMETHOD GetCmdLineURLUsed(PRBool *aCmdLineURLUsed) = 0;
  37.   NS_IMETHOD SetCmdLineURLUsed(PRBool aCmdLineURLUsed) = 0;
  38.  
  39.   /* void setWebShellWindow (in nsIDOMWindowInternal aWindow); */
  40.   NS_IMETHOD SetWebShellWindow(nsIDOMWindowInternal *aWindow) = 0;
  41.  
  42.   /* void close (); */
  43.   NS_IMETHOD Close(void) = 0;
  44.  
  45. };
  46.  
  47. /* Use this macro when declaring classes that implement this interface. */
  48. #define NS_DECL_NSIBROWSERINSTANCE \
  49.   NS_IMETHOD StartPageCycler(PRBool *_retval); \
  50.   NS_IMETHOD GetCmdLineURLUsed(PRBool *aCmdLineURLUsed); \
  51.   NS_IMETHOD SetCmdLineURLUsed(PRBool aCmdLineURLUsed); \
  52.   NS_IMETHOD SetWebShellWindow(nsIDOMWindowInternal *aWindow); \
  53.   NS_IMETHOD Close(void); 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  56. #define NS_FORWARD_NSIBROWSERINSTANCE(_to) \
  57.   NS_IMETHOD StartPageCycler(PRBool *_retval) { return _to StartPageCycler(_retval); } \
  58.   NS_IMETHOD GetCmdLineURLUsed(PRBool *aCmdLineURLUsed) { return _to GetCmdLineURLUsed(aCmdLineURLUsed); } \
  59.   NS_IMETHOD SetCmdLineURLUsed(PRBool aCmdLineURLUsed) { return _to SetCmdLineURLUsed(aCmdLineURLUsed); } \
  60.   NS_IMETHOD SetWebShellWindow(nsIDOMWindowInternal *aWindow) { return _to SetWebShellWindow(aWindow); } \
  61.   NS_IMETHOD Close(void) { return _to Close(); } 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  64. #define NS_FORWARD_SAFE_NSIBROWSERINSTANCE(_to) \
  65.   NS_IMETHOD StartPageCycler(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartPageCycler(_retval); } \
  66.   NS_IMETHOD GetCmdLineURLUsed(PRBool *aCmdLineURLUsed) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCmdLineURLUsed(aCmdLineURLUsed); } \
  67.   NS_IMETHOD SetCmdLineURLUsed(PRBool aCmdLineURLUsed) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCmdLineURLUsed(aCmdLineURLUsed); } \
  68.   NS_IMETHOD SetWebShellWindow(nsIDOMWindowInternal *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWebShellWindow(aWindow); } \
  69.   NS_IMETHOD Close(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } 
  70.  
  71. #if 0
  72. /* Use the code below as a template for the implementation class for this interface. */
  73.  
  74. /* Header file */
  75. class nsBrowserInstance : public nsIBrowserInstance
  76. {
  77. public:
  78.   NS_DECL_ISUPPORTS
  79.   NS_DECL_NSIBROWSERINSTANCE
  80.  
  81.   nsBrowserInstance();
  82.  
  83. private:
  84.   ~nsBrowserInstance();
  85.  
  86. protected:
  87.   /* additional members */
  88. };
  89.  
  90. /* Implementation file */
  91. NS_IMPL_ISUPPORTS1(nsBrowserInstance, nsIBrowserInstance)
  92.  
  93. nsBrowserInstance::nsBrowserInstance()
  94. {
  95.   /* member initializers and constructor code */
  96. }
  97.  
  98. nsBrowserInstance::~nsBrowserInstance()
  99. {
  100.   /* destructor code */
  101. }
  102.  
  103. /* boolean startPageCycler (); */
  104. NS_IMETHODIMP nsBrowserInstance::StartPageCycler(PRBool *_retval)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* attribute boolean cmdLineURLUsed; */
  110. NS_IMETHODIMP nsBrowserInstance::GetCmdLineURLUsed(PRBool *aCmdLineURLUsed)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114. NS_IMETHODIMP nsBrowserInstance::SetCmdLineURLUsed(PRBool aCmdLineURLUsed)
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118.  
  119. /* void setWebShellWindow (in nsIDOMWindowInternal aWindow); */
  120. NS_IMETHODIMP nsBrowserInstance::SetWebShellWindow(nsIDOMWindowInternal *aWindow)
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124.  
  125. /* void close (); */
  126. NS_IMETHODIMP nsBrowserInstance::Close()
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130.  
  131. /* End of implementation class template. */
  132. #endif
  133.  
  134. #define NS_BROWSERINSTANCE_CONTRACTID "@mozilla.org/appshell/component/browser/instance;1"
  135. #define NS_BROWSERSTARTUPHANDLER_CONTRACTID "@mozilla.org/commandlinehandler/general-startup;1?type=browser"
  136. #define NS_CHROMESTARTUPHANDLER_CONTRACTID "@mozilla.org/commandlinehandler/general-startup;1?type=chrome"
  137. // {c7bee75a-1dd1-11b2-9333-a38e085287cf}
  138. #define NS_BROWSERCONTROLLER_CID { 0xc7bee75a, 0x1dd1, 0x11b2, { 0x93, 0x33, 0xa3, 0x8e, 0x08, 0x52, 0x87, 0xcf } } 
  139. // {5551A1E0-5A66-11d3-806A-00600811A9C3}
  140. #define NS_BROWSERINSTANCE_CID {   0x5551a1e0, 0x5a66, 0x11d3, { 0x80, 0x6a, 0x0, 0x60, 0x08, 0x11, 0xa9, 0xc3 } }
  141. // {C2343730-DC2C-11d3-98B3-001083010E9B}
  142. #define NS_BROWSERCONTENTHANDLER_CID { 0xc2343730, 0xdc2c, 0x11d3, { 0x98, 0xb3, 0x0, 0x10, 0x83, 0x1, 0xe, 0x9b } }
  143. // {406B41R2-98B1-40B2-99R3-8A326CDC1F30}
  144. #define NS_CHROMESTARTUPHANDLER_CID { 0x406b41e2, 0x98b1, 0x40b2, { 0x99, 0xe3, 0x8a, 0x32, 0x6c, 0xdc, 0x1f, 0x30 } }
  145.  
  146. #endif /* __gen_nsIBrowserInstance_h__ */
  147.